import request from './request'

export function searchAttrList(form) {
    return new request({
        url: '/travel/searchAttrList',
        method: 'get',
        params: form
    })
}

export function getAttrDetail(id) {
    return request({
        url: '/travel/findAttrById/' + id,
        method: 'get'
    })
}

export function getRecommendAttrs() {
    return request({
        url: '/travel/recommendAttr',
        method: 'get'
    })
}

export function getAllAreas() {
    return request({
        url: '/travel/findAllArea',
        method: 'get'
    })
}

export function getAllCates() {
    return request({
        url: '/travel/findAllCate',
        method: 'get'
    })
}